package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.BusinessInformDao;
import com.qc.entity.BusinessInformEntity;
import com.qc.service.BusinessInformService;

@Service("businessInformService")
public class BusinessInformServiceImpl implements BusinessInformService{

    @Resource(name="businessInformDao")
    private BusinessInformDao businessInformDao;
    
    @Override
    public int getListBusinessInformCount(String title) {

        return businessInformDao.getListBusinessInformCount(title);
    }

    @Override
    public List<BusinessInformEntity> getAllBusinessInform(String title,int pageNo, int pageSize) {
        
        return businessInformDao.getAllBusinessInform(title, pageNo, pageSize);
    }

    @Override
    public BusinessInformEntity getBusinessInformId(long bId) {

        return businessInformDao.getBusinessInformId(bId);
    }

    @Override
    public int saveBusinessInform(BusinessInformEntity businessInform) {

        return businessInformDao.saveBusinessInform(businessInform);
    }

    @Override
    public int deleteBusinessInformId(long id) {

        return businessInformDao.deleteBusinessInformId(id);
    }

    @Override
    public int updateBusinessInformId(BusinessInformEntity businessInform) {

        return businessInformDao.updateBusinessInformId(businessInform);
    }

	@Override
	public int getListWebBusinessInformCount(String shopName, String time) {

		return businessInformDao.getListWebBusinessInformCount(shopName, time);
	}

	@Override
	public List<BusinessInformEntity> getAllWebBusinessInform(String shopName, String time, int pageNo, int pageSize) {

		return businessInformDao.getAllWebBusinessInform(shopName, time, pageNo, pageSize);
	}

	@Override
	public BusinessInformEntity getWebBusinessInformId(String bId) {

		return businessInformDao.getWebBusinessInformId(bId);
	}

}
